<?php
$host="localhost";
$user="root";
$pass="123456";
$db="example";
$o_conn=mysql_connect($host,$user,$pass) or die ("Loi ket noi"); //Tao bien ket noi
mysql_select_db($db) or die("Loi chon CSDL"); //Lua chon CSDL

?>